package com.study.bean的生命周期;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;

/**
 * @author chenhs
 * @date 2019/9/7
 */
public class MyBeanProcessor implements BeanPostProcessor {
	@Override
	public Object postProcessBeforeInitialization(Object o, String s) throws BeansException {
		System.out.println("实例化前");
		return o;
	}
	
	@Override
	public Object postProcessAfterInitialization(Object o, String s) throws BeansException {
		System.out.println("实例化后 ");
		return o;
	}
}
